#-*- coding: utf-8 -*
#@author 小测试
#@create 2020-03-03 22:10
def header(token=None):
    #获取头部信息,
    header={
        "Content-Type": "application/json",
        "token": token
    }

    if token==None:
        header.pop("token")
    elif token!=None:
        header["token"]=token
    return header
